<template>
  <div>
    <h2>房间管理</h2>
    <table>
      <thead>
        <tr>
          <th>房间号</th>
          <th>床型</th>
          <th>状态</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="room in rooms" :key="room.roomNumber">
          <td>{{ room.roomNumber }}</td>
          <td>{{ room.bedType }}</td>
          <td>{{ room.status }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  name: 'AppRooms',
  data() {
    return {
      rooms: [
        { roomNumber: '101', bedType: '单人床', status: '空闲' },
        { roomNumber: '102', bedType: '双人床', status: '已预定' },
      ],
    };
  },
};
</script>

<style scoped>
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
</style>
